package com.team7.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("edu_video")
@ApiModel(value = "Video对象", description = "课程视频")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "课程ID")
    private String courseId;

    @ApiModelProperty(value = "章节ID")
    private String chapterId;

    @ApiModelProperty(value = "课时节点名称")
    private String title;

    @ApiModelProperty(value = "云端视频资源")
    private String videoSourceId;

    @ApiModelProperty(value = "附属文件")
    private String videoOriginalName;

    @ApiModelProperty(value = "播放次数")
    private Long playCount;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private String gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField("gmt_modified")
    private String gmtModified;

    @ApiModelProperty("状态,1正常,,2修改")
    private Integer status;

    @ApiModelProperty("课时排序")
    private Integer sort;

    @ApiModelProperty("是否免费")
    private Integer isFree;

    @ApiModelProperty("视频源文件大小")
    private Integer size;

}